package com.lzx.service.zjwd.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zjwd.ZjwdMapper;
import com.lzx.mapper.zjwd.ZjxxMapper;
import com.lzx.model.nybk.Nybk;
import com.lzx.model.zjwd.Zjwd;
import com.lzx.model.zjwd.Zjxx;
import com.lzx.service.zjwd.ZjwdService;
import com.lzx.service.zjwd.ZjxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("zjwdService")
public class ZjwdServiceImpl extends ServiceImpl<ZjwdMapper,Zjwd> implements ZjwdService {
    @Autowired
    private ZjwdMapper zjwdMapper;

    @Override
    public List<Zjwd> queryList(Zjwd demo){
        return zjwdMapper.selectList(new EntityWrapper<Zjwd>());
    }

    @Override
    public List<Zjwd> selectdemolist( ){
        try {
            return zjwdMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Zjwd selectdemobyid(String id){
        try {
            return zjwdMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public List<Zjwd> findZjwdlist(Zjwd demo) throws SQLException {
        return zjwdMapper.findZjwdlist(demo);
    }

    @Override
    public List<Zjwd> findZjwdNopage(Zjwd demo) throws SQLException {
        return zjwdMapper.findZjwdNopage(demo);
    }
}
